package club.itstudio.IContainer.controller;

import club.itstudio.IContainer.util.Result;
import club.itstudio.IContainer.util.ResultUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping
    public Result sayHello() {
        Map<String, String> data = new HashMap<>();
        data.put("1", "2");
        data.put("2", "3");
        return ResultUtil.success(data);
    }

}
